import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: HomeApp(),
    debugShowCheckedModeBanner: false,
  ));
}

class HomeApp extends StatelessWidget {
  const HomeApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Text 组件的使用'),
        leading: Icon(Icons.menu),
        backgroundColor: Colors.orange,
      ),
      body: Container(
        child: Center(
          child: Text('《春宵》 苏轼 \n 春宵一刻值千金，花有清香月有阴。\n 歌管楼台声细细，秋千院落夜沉沉。'),
        ),
      ),
      bottomNavigationBar: BottomNavigationBar(items: [
        BottomNavigationBarItem(
            icon: Icon(Icons.home), label: '首页', backgroundColor: Colors.red),
        BottomNavigationBarItem(
            icon: Icon(Icons.search), label: '搜索', backgroundColor: Colors.red),
        BottomNavigationBarItem(
            icon: Icon(Icons.person), label: '我的', backgroundColor: Colors.red)
      ]),
    );
  }
}

